<?php

session_start();

require_once("utils/query.php");


$facebookID = $_SESSION['facebookID']; 
//echo $facebookID;

$drupaluid = execute_query("SELECT drupaluid FROM facebookUser WHERE facebookID = '%s'", $facebookID); // Find drupalID from facebookID

$row = mysql_fetch_assoc($drupaluid); // Returns an associative array of the row of results matching the drupaluid

$_SESSION['drupaluid'] = $row['drupaluid']; // Store the drupaluid corresponding to the facebookID

?>
